<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Flot Examples</title>
    <link href="/mes/stock/layout.css" rel="stylesheet" type="text/css">
    <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="/mes/stock/excanvas.min.js"></script><![endif]-->
    <script language="javascript" type="text/javascript" src="/mes/stock/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="/mes/stock/jquery.flot.js"></script>
    <script language="javascript" type="text/javascript" src="/mes/stock/jquery.flot.categories.js"></script>
 </head>
    <body>
    <table>
    	<tr>
    	<td></td>
    	</tr>
    </table>
    <div id="placeholder" style="width:400px;height:200px;"></div>
<script type="text/javascript">
$(function () {
    var data = [ ["${requestScope.list[0].warehouseId }", "${requestScope.list[0].currentStock }"], ["${requestScope.list[1].warehouseId }", "${requestScope.list[1].currentStock }"] ];
    
    $.plot($("#placeholder"), [ data ], {
        series: {
            bars: {
                show: true,
                barWidth: 0.6,
                align: "center" }
        },
        xaxis: {
            mode: "categories",
            tickLength: 0
        }
    });
});
</script>
 </body>
</html>
